<template>
  <div class="banben">
    <!-- 这是版本信息页面 -->
    <!-- 书写标题头 -->
    <div class="order_title">
      <span class="one" @click="fanhui">&lt;</span>
      <span>版本信息</span>
    </div>
    <!-- 当前版本 -->
    <div class="one_inf">
      <span>当前版本</span>
      <span>{{ banbenVal.versions }}</span>
    </div>
    <!-- 版本信息 -->
    <div class="two_inf">
      <h3>版本信息</h3>
      <span>{{ banbenVal.infomation }}</span>
    </div>
  </div>
</template>

<script>
import { GetUserBanbenLists } from "@/request/api";
export default {
  data() {
    return {
      banbenVal: "",
    };
  },
  created() {
    GetUserBanbenLists().then((res) => {
      console.log(res);
      this.banbenVal = res.data;
    });
  },
  methods: {
    fanhui() {
      this.$router.go(-1);
    },
  },
};
</script>
 
<style lang = "less" scoped>
.banben {
  min-height: 100%;
  width: 100%;
  background-color: #efefef;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 6;
  /* 标题头样式 */
  /* 标题头的样式 */
  .order_title {
    width: 100%;
    height: 0.5rem;
    background-color: #003399;
    text-align: center;
    line-height: 0.5rem;
    color: white;
    font-size: 0.18rem;
    padding-top: 0.1rem;
    .one {
      float: left;
      margin-left: 0.2rem;
    }
  }
  .one_inf {
    height: 0.5rem;
    width: 100%;
    background-color: white;
    padding: 0 0.2rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    line-height: 0.5rem;
    font-size: 0.16rem;
    span {
      &:nth-child(2) {
        color: #aaa;
      }
    }
  }
  .two_inf {
    padding: 0.2rem;
    margin-top: 0.1rem;
    background-color: white;
    h3 {
      font-size: 0.16rem;
      padding-bottom: 0.05rem;
    }
    span {
      color: #aaa;
    }
  }
}
</style>